// ============================================================================
//
// Graph framework by Aurelien Moreau aurelien.moreau@gmail.com
// Modified by Pierre CHATEL chatelp@gmail.com
// Distributed under LGPL
// Copyright (C) Aurelien Moreau, 2008, 2009. All rights reserved
//
// ============================================================================

package com.thalesgroup.graphFramework.core.impl;

public class BadGraph extends RuntimeException {

	private static final String MSG_2 = "assign to grammar "; //$NON-NLS-1$

	private static final String MSG_1 = "Object "; //$NON-NLS-1$

	private static final long serialVersionUID = 7292055172018286960L;

	transient protected GraphImpl<?, ?> graph;

	transient protected Object o;

	public BadGraph(final GraphImpl<?, ?> graph, final Object o) {
		super(MSG_1 + o + MSG_2 + graph);
		this.graph = graph;
		this.o = o;
	}

	public GraphImpl<?, ?> getGraph() {
		return graph;
	}

	public Object getObject() {
		return o;
	}
}
